package com.chaber.containers.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;

public abstract class AbstractService {
	
	@Autowired 
	protected ApplicationEventPublisher eventPublisher;
	
	@Autowired
	protected LocalValidatorFactoryBean validator;

	public ApplicationEventPublisher getEventPublisher() {
		return eventPublisher;
	}

	public void setEventPublisher(ApplicationEventPublisher eventPublisher) {
		this.eventPublisher = eventPublisher;
	}

	public LocalValidatorFactoryBean getValidator() {
		return validator;
	}

	public void setValidator(LocalValidatorFactoryBean validator) {
		this.validator = validator;
	}
}
